# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libmediaart
pkgver=1.9.4
pkgrel=0
pkgdesc="Media art extraction and cache management library"
url="https://developer.gnome.org/libmediaart/1.9/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="intltool glib-dev gdk-pixbuf-dev vala gobject-introspection-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/libmediaart/${pkgver%.*}/libmediaart-${pkgver}.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="e2526c22cb656c821da626c43c09d72afded1dfc369e77baea3de17dd6d3bd3b829cf3160e386459f55b9580cbeeb1d621c85876cb62739bc8d4f42429bdce1c  libmediaart-1.9.4.tar.xz"
